# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-i18naddress
_pyname=google-i18n-address
pkgver=2.4.0
pkgrel=2
pkgdesc="Address validation helpers for Google's i18n address database"
url="https://github.com/mirumee/google-i18n-address"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
	python-3.9.patch"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="a64e598b838f9d83b70b4f6acb3dc6c8930239e44b726f39a8f973334e2927d0394d1f323ca53acd43f4d9abede2a7ee48427f48a90427cbae7aada4cd8f08a5  google-i18n-address-2.4.0.tar.gz
b4538f0acdcd8fced7c2d6372428dda4fbcb61eed2d8acc1b9e77a1147ba8d7ee8e4f6b0b63c16d50533c8cbea933157aed8a09b14b5664170303f602d0b25ad  python-3.9.patch"
